package com.lmt.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 用户实体
 * Date 2018/07/03
 *
 * @author MT-Lin
 */
@Entity
@Table(name = "user")
public class User extends BaseEntity {

    @Column(name = "user_name")
    private String userName;

    @Column(name = "email")
    private String email;

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    @Override
    public String toString() {
        return "User{" + "userName='" + userName + '\'' + ", email='" + email + '\'' + ", id='" + id + '\''
                + ", gmtCreate=" + gmtCreate + ", gmtModified=" + gmtModified + '}';
    }
}

